import { Injectable } from '@nestjs/common';
import { PrismaService } from './prisma.service';
import { user } from '@prisma/client';

@Injectable()
export class UsersService {
  constructor(private prisma: PrismaService) {}
  async getUserInfo(username: string): Promise<user | null> {
    return this.prisma.user.findUnique({
      where: {
        username: username,
      },
    });
  }
}
